﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include "毛概题库.hpp"

void menu()
{
	cout << "******************" << endl;
	cout << "*毛概模拟考试系统*" << endl;
	cout << "******************" << endl;
	cout << "*1.随机做全部题目*" << endl;
	cout << "*2.随机做选择题目*" << endl;
	cout << "*3.随机做填空题目*" << endl;
	cout << "*4.随机做判断题目*" << endl;
	cout << "*5.显示当前全部错题*" << endl;
	cout << "*0.退出程序*" << endl;
	cout << "请选择>";

}

int main()
{
	using topic::exam;
	exam x;
	x.PrintSize();
	cout << "按任意键进入程序 " << endl;
	system("pause");
	int num = 0;
	do
	{
		system("cls");
		menu();
		cin >> num;
		switch (num)
		{
		case 0: system("cls"); return 0;
		case 1: system("cls"); x.All_Random(); break;
		case 2: system("cls"); x.exam_mcq(); break;
		case 3: system("cls"); x.exam_fitb(); break;
		case 4: system("cls"); x.exam_jq(); break;
		case 5: system("cls"); x.Printvv(); system("pause"); break;
		default:;
		}
	} while (num);
	return 0;
}







